<?php

/* 
 * Project: colobok
 * and open the template in the editor.
 * @author: Sviatoslav Mysachenko <svyatoslavik@gmail.com>
 */

class Widget extends CWidget{
    public function addScript($script){
        if(is_array($script))
            foreach($script as $_scriptFile)
                Yii::app()->getClientScript()->registerScriptFile($_scriptFile);
        else
            Yii::app()->getClientScript()->registerScriptFile($script);
    }
    public function addCss($cssFile){
        if(is_array($cssFile))
            foreach($cssFile as $_cssFile)
                Yii::app()->getClientScript()->registerCssFile($_cssFile);
        else
            Yii::app()->getClientScript()->registerCssFile($cssFile);
    }
}
